<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
	<head>
		<title>订单查询</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
		<script type="text/javascript" src="${ctx}/script/order.js"></script>
		<script language="javascript" type="text/javascript"
			src="${ctx}/script/Date/WdatePicker.js"></script>
		<style>
<!--
.blue {
	color: blue;
}

.red {
	color: red;
}

.green {
	color: green;
}
-->
</style>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
	</head>
	<body onload="auto();">
		<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
		<form action="${ctx}/addBillManage.do?method=normalSelect"
			method="post" target="resultlist" id="aa">
			<input type="hidden" id="isauto" value="${isAuto}"/> 
			<input type="hidden" id="dianziId" value="${dianzi}"/> 
			<input type="hidden" id="wuliuId" value="${wuliu}"/> 
			<input type="hidden" id="wuliu2Id" value="${wuliu2}"/> 
			<input type="hidden" id="caiwuId" value="${caiwu}"/> 
			<table width="99%" id="xuanze">
				<tr>
					<th colspan="8" height="20">
						<font size="2">订单查询</font>
					</th>
				</tr>
				<tr>
					<td colspan="8">
						<strong><font color="#005984" size="2">常用查询</font> </strong>
					</td>
				</tr>
				<tr>
					<TD class="td_01">
						<font size="2">客服部：</font>
					</TD>
					<TD class="td_02">

						<select id="dianziSeId" name="dianzi" onChange="xuan(this)">
							<option selected="selected" value="-1">
								--- 选择 ---
							</option>
							<option value="15">
								全部
							</option>
							<option value="1" class="red">
								已确认，未支付
							</option>
							<option value="2" class="red">
								已确认，已支付
							</option>
							<option value="3" class="red">
								待审核，已支付
							</option>
							<option value="4" class="red">
								已发货
							</option>
							<option value="5" class="green">
								已确认，未支付
							</option>
							<option value="6" class="green">
								已收款
							</option>
							<option value="7" class="blue">
								已确认，未支付
							</option>
						</select>
					</TD>
					<TD class="td_01">
						<font size="2">财务部：</font>
					</TD>
					<TD class="td_02">

						<select id="caiwuSeId" name="caiwu" onChange="xuan(this)">
							<option selected="selected" value="-1">
								--- 选择 ---
							</option>
							<option value="15">
								全部
							</option>
							<option value="1" class="red">
								已审核，未支付
							</option>
							<option value="2" class="red">
								已取消，待退款
							</option>
							<option value="3" class="green">
								已发货，待收款
							</option>
							<option value="4" class="blue">
								已配货，可自提
							</option>
						</select>
					</TD>
					<TD class="td_01">
						<font size="2">物流部1：</font>
					</TD>
					<TD class="td_02">

						<select id="wuliuSeId" name="wuliu" onChange="xuan(this)">
							<option selected="selected" value="-1">
								--- 选择 ---
							</option>
							<option value="15">
								全部
							</option>
							<option value="1" class="red">
								已支付，待配货
							</option>
							<option value="2" class="green">
								已审核，待配货
							</option>
							<option value="3" class="blue">
								已审核，待配货
							</option>
						</select>
					</TD>
					<TD class="td_01">
						<font size="2">物流部2：</font>
					</TD>
					<TD class="td_02">

						<select id="wuliu2SeId" name="wuliu2" onChange="xuan(this)">
							<option selected="selected" value="-1">
								--- 选择 ---
							</option>
							<option value="15">
								全部
							</option>
							<option value="1" class="red">
								已配货，待发货
							</option>
							<option value="2" class="green">
								已配货，待发货
							</option>
						</select>
					</TD>
				</tr>
				<tr class="tblrow">
					<TD colspan="8" align="center" class="td_02">
						<input type="submit" name="select" value="查询" class="btn"
							disabled="true" id="chang1" />
						&nbsp;&nbsp;&nbsp;
						<font face="宋体"><input type="button" class="btn"
								value="导出到 Excel" disabled="true" id="chang2"
								onclick="javaScript:tiao('${ctx}/addBillManage.do?method=normalSelect')" />
						</font>
						<input type="hidden" name="biao" id="biao" />
					</TD>
				</tr>
			</table>
		</form>
		<form action="${ctx}/addBillManage.do?method=resultList" method="post"
			target="resultlist" id="for" onSubmit="return sub();">
			<table width="99%">
				<tr>
					<td colspan="4">
						<a href="javaScript:yin('tcb')"> <strong><font
								color="#005984">基本查询</font> </strong> </a>
					</td>
				</tr>
				<tbody id="tcb" style="display: none">
					<tr>
						<td class="td_3">
							<font size="2">订单日期范围：</font>
						<br></td>
						<td class="td_02" width="35%">
							<input class="Wdate" id="startDate" name="orderindex.adddate1"
								type="text" onfocus="new WdatePicker()"
								maxdate="#F{$('endDate').value}"
								onpicked="$('endDate').onfocus()" readonly="readonly" />
							&nbsp;&nbsp;--&nbsp;&nbsp;
							<input class="Wdate" id="endDate" name="orderindex.adddate2"
								type="text" onfocus="new WdatePicker()"
								MINDATE="#F{$('startDate').value}" readonly="readonly" />
						<br></td>
						<td class="td_3">
							<font size="2">订单确认日期：</font>
						<br></td>
						<td class="td_02">
							<input class="Wdate" id="startDate1"
								name="orderindex.confirmtime1" type="text"
								onfocus="new WdatePicker()"
								maxdate="#F{$('endDate1').value}"
								onpicked="$('endDate1').onfocus()" readonly="readonly" />
							&nbsp;&nbsp;--&nbsp;&nbsp;
							<input class="Wdate" id="endDate1" name="orderindex.confirmtime2"
								type="text" onfocus="new WdatePicker()"
								MINDATE="#F{$('startDate1').value}" readonly="readonly" />
						<br></td>
					</tr>
					<tr>
						<td class="td_3">
							订单号：
						<br></td>
						<td class="td_02">
							<input name="orderindex.id" type="text" id="billId"
								maxlength="15" onBlur="javaScript:jiao(this)" />
							<span style="color: red"></span>
						<br></td>
						<td class="td_3">
							订单配送时间：
						<br></td>
						<td class="td_02">
								<input class="Wdate" id="startDate2"
								name="orderindex.sendtime1" type="text"
								onfocus="new WdatePicker()"
								maxdate="#F{$('endDate2').value}"
								onpicked="$('endDate2').onfocus()" readonly="readonly" />
							&nbsp;&nbsp;--&nbsp;&nbsp;
							<input class="Wdate" id="endDate2" name="orderindex.sedtime2"
								type="text" onfocus="new WdatePicker()"
								MINDATE="#F{$('startDate2').value}" readonly="readonly" />
						<br></td>
					</tr>
					<tr>
						<td class="td_3">
							用户真实姓名：
						<br></td>
						<td class="td_02">
							<input name="orderindex.realName" type="text" />
						<br></td>
						<td class="td_3">
							用户名：
						<br></td>
						<td class="td_02">
							<input name="orderindex.customername" type="text" />
						<br></td>
					</tr>
					<tr>
						<td class="td_3">
							收货人：
						<br></td>
						<td class="td_02">
							<input name="orderindex.consignee" type="text" />
						<br></td>
						<td class="td_3">
							收货人电话：
						<br></td>
						<td class="td_02">
							<input name="orderindex.phone" type="text"
								onBlur="javaScript:phone(this)" />
							<span style="color: red"></span>
						<br></td>
					</tr>
					<tr>
						<td class="td_3">
							订单状态：
						<br></td>
						<td class="td_02">
							<select name="orderindex.status">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
								<option value="1">
									待审核
								</option>
								<option value="2">
									已审核
								</option>
								<option value="4">
									已取消
								</option>
								<option value="6">
									已完成
								</option>
								<option value="8">
									可自提
								</option>
								<option value="10">
									已确认
								</option>
							</select>
						<br></td>
						<TD class="td_3">
							配送方式：
						<br></TD>
						<TD class="td_02">
							<select name="orderindex.deliverid">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
								<logic:present name="deliverlist">
								<logic:iterate id="allp" name="deliverlist">
									<option value="${allp.id}">
									${allp.name}
									</option>
								</logic:iterate>
							</logic:present>
							</select>
						<br></TD>
					</tr>
					<tr>
						<td class="td_3">
							支付状态：
						<br></td>
						<td class="td_02">
							<select name="orderindex.paystatus">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
								<option value="1">
									未支付
								</option>
								<option value="2">
									已支付
								</option>
								<option value="3">
									待退款
								</option>
								<option value="4">
									已退款
								</option>
							</select>
						<br></td>
						<TD class="td_3">
							支付方式:
						<br></TD>
						<TD class="td_02">
							<select name="orderindex.paymentid">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
							<logic:present name="paymentlist">
								<logic:iterate id="allp" name="paymentlist">
									<option value="${allp.id}">
									${allp.name}
									</option>
								</logic:iterate>
							</logic:present>
							</select>
						<br></TD>
					<tr>
						<td class="td_3">
							配送状态：
						<br></td>
						<td class="td_02">
							<select name="orderindex.deliverstatus">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
								<option value="1">
									待配货
								</option>
								<option value="2">
									已配货
								</option>
								<option value="3">
									已发货
								</option>
							</select>
						<br></td>
						<TD class="td_3">
							支配方式：
						<br></TD>
						<TD class="td_02">

							<select name="orderindex.payanddeliver">
								<option selected="selected" value="0">
									--- 选择 ---
								</option>
								<option value="1">
									先款后货
								</option>
								<option value="2">
									先货后款
								</option>
								<option value="3">
									自提
								</option>
							</select>
						<br></TD>
					</tr>
					<tr>
						<td class="td_3">
							手机号码：
						<br></td>
						<td class="td_02">
							<input name="orderindex.mobilephone" type="text"
								onBlur="javaScript:telephone(this)" maxlength="11" />
							<span style="color: red"></span>
						<br></td>
						<td class="td_3">
							vip卡号：
						<br></td>
						<td class="td_02">
							<input name="orderindex.vipcode" type="text"
								onBlur="javaScript:jiao(this)" maxlength="5" />
							<span style="color: red"></span>
						<br></td>
					</tr>
					<tr>
						<td class="td_3">
							快递号：
						<br></td>
						<td class="td_02">
							<input name="orderindex.delivercode" type="text"
								onBlur="javaScript:dai(this)" />
							<span style="color: red"></span>
						<br></td>
						<td class="td_3">
							优惠券Id：
						<br></td>
						<td class="td_02">
							<input name="orderindex.useticketid" type="text" />
						<br></td>
					</tr>
					<tr>
						<td colspan="4" class="td_02" align="center"><input type="submit" name="Search" class="btn" value="查询" />
							&nbsp;&nbsp; &nbsp;&nbsp;
							<!-- 
							<input type="button" name="CreateBill" class="btn" value="创建订单..."
								onclick="javaScript:tiao('${ctx}/addBillManage.do?method=in')" />&nbsp;&nbsp;&nbsp;
								 -->
							<font face="宋体"><input type="button" class="btn"
									name="btnExport" value="导出到 Excel"
									onclick="javaScript:tiao('${ctx}/addBillManage.do?method=downloadExcel')" />
							</font>
						<br></td>
					</tr>
				</tbody>
			</table>
		</form>
		<iframe name="resultlist" width="100%" height="65%" frameborder="0"></iframe>
	</body>
</html>